package net.mysoft.budgetsoft.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import static javax.persistence.GenerationType.IDENTITY;

/**   
 *  
 * @author dagongPGP v1.0 
 * @link <a href=http://www.dagongsoft.net>北京大公信软科技有限公司</a> 
 *  
 * @version $Revision: 1.00  $Date: 2013-08-07 18:04:49 
 */
@Entity
@Table(name="XiTongXX")
public class TXiTongXX implements java.io.Serializable {  
	public static final int WEIYUE = 0;
	public static final int YIYUE = 1;
	public static final int SHANCHU = 2;
	
	public static final int CUIBAN = 1;
	public static final int PUTONG = 0;
	
	public static final int YITANCHUANG = 1;
	public static final int WEITANCHUANG = 0;
	
    private String bianHao;
    private String fromId;
    private String toId;
    private java.util.Date shiJian;
    private String neiRong;
    private Integer zhuangTai;
    private Integer cuiBanLX;
    private Integer shiFouTC;

	@Id 
    @Column(name="BianHao", unique=true, nullable=false)
    public String getBianHao(){
    	return this.bianHao;
    }
    
    public void setBianHao(String bianHao){
    	this.bianHao = bianHao;
    }
    
    @Column(name="FromId")
    public String getFromId(){
    	return this.fromId;
    }
    
    public void setFromId(String fromId){
    	this.fromId = fromId;
    }
    
    @Column(name="ToId")
    public String getToId(){
    	return this.toId;
    }
    
    public void setToId(String toId){
    	this.toId = toId;
    }
    
    @Column(name="ShiJian")
    public java.util.Date getShiJian(){
    	return this.shiJian;
    }
    
    public void setShiJian(java.util.Date shiJian){
    	this.shiJian = shiJian;
    }
    
    @Column(name="NeiRong")
    public String getNeiRong(){
    	return this.neiRong;
    }
    
    public void setNeiRong(String neiRong){
    	this.neiRong = neiRong;
    }
    
    @Column(name="ZhuangTai")
    public Integer getZhuangTai() {
		return zhuangTai;
	}
    public void setZhuangTai(Integer zhuangTai) {
		this.zhuangTai = zhuangTai;
	}
    @Column(name="CuiBanLX")
    public Integer getCuiBanLX() {
		return cuiBanLX;
	}
    public void setCuiBanLX(Integer cuiBanLX) {
		this.cuiBanLX = cuiBanLX;
	}
    @Column(name="shiFouTC")
    public Integer getShiFouTC() {
		return shiFouTC;
	}
    public void setShiFouTC(Integer shiFouTC) {
		this.shiFouTC = shiFouTC;
	}
	
    
    @Override
    public int hashCode() {
    	int prime = 0;
        prime +=this.getBianHao().hashCode();
        return prime;
    }

    @Override
    public boolean equals(Object obj) {
    	boolean isEquals = false;
    	if(obj!=null&&this.getClass()==obj.getClass()){
    		TXiTongXX clazz = (TXiTongXX)obj;
            if(clazz.getBianHao().equals(this.getBianHao()))
            	isEquals = true;
    		return isEquals;
    	}
        return isEquals;
    }

}